xen: is_hvm_{domain,vcpu} should evaluate to false when !CONFIG_HVM
authorWei Liu <wei.liu2@citrix.com>
Sun, 26 Aug 2018 12:19:35 +0000 (13:19 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 28 Aug 2018 13:47:06 +0000 (14:47 +0100)
commit674f9f71095e5d2e539165dddf8f52bbcbf485d7
tree70ad8802599c3b46ca575fd625058f86605e6e0b
parent4991a46130dca276757d88e77ce7aec7e3e017e5
xen: is_hvm_{domain,vcpu} should evaluate to false when !CONFIG_HVM

Turn them into static inline functions which evaluate to false when
CONFIG_HVM is not set. ARM won't be broken because ARM guests are set
to PV type in the hypervisor.

But ARM has plan to switch to HVM guest type inside the hypervisor, so
preemptively introduce CONFIG_HVM for ARM here.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/Kconfig
xen/include/xen/sched.h